package com.dep.mapper;

import com.dep.dto.req.DepartmentReq;
import com.dep.dto.resp.DepartmentAllResp;
import com.dep.dto.resp.DepartmentResp;
import com.dep.entity.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

    List<DepartmentResp> findPage(DepartmentReq req);

    List<DepartmentAllResp> findALl();

    int selectByDepName(@Param("depName") String depName);

    int selectByDepNo(@Param("depNo") String depNo);
}